package com.dx.common.table.ppt;


import com.dx.mes.common.bean.entity.UUIDObject;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import org.springframework.stereotype.Component;

import java.sql.Timestamp;
import java.util.Objects;

/**
 * Ret_tool_alarm entity. @author MyEclipse Persistence Tools
 */
@Component
@XStreamAlias("table")
public class Ret_tool_alarm  extends UUIDObject implements java.io.Serializable {


    // Fields    

     private Ret_tool_alarmId id;
     private String unq_seq_id;
     private String dept_id_fk;
     private String line_id_fk;
     private String tool_status;
     private String alarm_mfmn;
     private String alarm_mfwk;
     private Integer time_period;
     private String alarm_evt_typ;
     private String alarm_lvl;
     private String alarm_dsc;
     private String alarm_note;
     private String alarm_deal_usr;
     private String alarm_deal_meas;
     private String alarm_deal_result;
     private String feat_action;
     private String feat_act_usr;
     private String evt_usr;
     private Timestamp evt_timestamp;



    // Constructors

    /** default constructor */
    public Ret_tool_alarm() {
    }

	/** minimal constructor */
    public Ret_tool_alarm(Ret_tool_alarmId id) {
        this.id = id;
    }

    /** full constructor */
    public Ret_tool_alarm(Ret_tool_alarmId id, String unq_seq_id, String dept_id_fk, String line_id_fk, String tool_status, String alarm_mfmn, String alarm_mfwk, Integer time_period, String alarm_evt_typ, String alarm_lvl, String alarm_dsc, String alarm_note, String alarm_deal_usr, String alarm_deal_meas, String alarm_deal_result, String feat_action, String feat_act_usr, String evt_usr, Timestamp evt_timestamp) {
        this.id = id;
        this.unq_seq_id = unq_seq_id;
        this.dept_id_fk = dept_id_fk;
        this.line_id_fk = line_id_fk;
        this.tool_status = tool_status;
        this.alarm_mfmn = alarm_mfmn;
        this.alarm_mfwk = alarm_mfwk;
        this.time_period = time_period;
        this.alarm_evt_typ = alarm_evt_typ;
        this.alarm_lvl = alarm_lvl;
        this.alarm_dsc = alarm_dsc;
        this.alarm_note = alarm_note;
        this.alarm_deal_usr = alarm_deal_usr;
        this.alarm_deal_meas = alarm_deal_meas;
        this.alarm_deal_result = alarm_deal_result;
        this.feat_action = feat_action;
        this.feat_act_usr = feat_act_usr;
        this.evt_usr = evt_usr;
        this.evt_timestamp = evt_timestamp;
    }

    // Property accessors

    public Ret_tool_alarmId getId() {
        return id;
    }

    public void setId(Ret_tool_alarmId id) {
        this.id = id;
    }

    @Override
    public String getUnq_seq_id() {
        return unq_seq_id;
    }

    @Override
    public void setUnq_seq_id(String unq_seq_id) {
        this.unq_seq_id = unq_seq_id;
    }

    public String getDept_id_fk() {
        return dept_id_fk;
    }

    public void setDept_id_fk(String dept_id_fk) {
        this.dept_id_fk = dept_id_fk;
    }

    public String getLine_id_fk() {
        return line_id_fk;
    }

    public void setLine_id_fk(String line_id_fk) {
        this.line_id_fk = line_id_fk;
    }

    public String getTool_status() {
        return tool_status;
    }

    public void setTool_status(String tool_status) {
        this.tool_status = tool_status;
    }

    public String getAlarm_mfmn() {
        return alarm_mfmn;
    }

    public void setAlarm_mfmn(String alarm_mfmn) {
        this.alarm_mfmn = alarm_mfmn;
    }

    public String getAlarm_mfwk() {
        return alarm_mfwk;
    }

    public void setAlarm_mfwk(String alarm_mfwk) {
        this.alarm_mfwk = alarm_mfwk;
    }

    public Integer getTime_period() {
        return time_period;
    }

    public void setTime_period(Integer time_period) {
        this.time_period = time_period;
    }

    public String getAlarm_evt_typ() {
        return alarm_evt_typ;
    }

    public void setAlarm_evt_typ(String alarm_evt_typ) {
        this.alarm_evt_typ = alarm_evt_typ;
    }

    public String getAlarm_lvl() {
        return alarm_lvl;
    }

    public void setAlarm_lvl(String alarm_lvl) {
        this.alarm_lvl = alarm_lvl;
    }

    public String getAlarm_dsc() {
        return alarm_dsc;
    }

    public void setAlarm_dsc(String alarm_dsc) {
        this.alarm_dsc = alarm_dsc;
    }

    public String getAlarm_note() {
        return alarm_note;
    }

    public void setAlarm_note(String alarm_note) {
        this.alarm_note = alarm_note;
    }

    public String getAlarm_deal_usr() {
        return alarm_deal_usr;
    }

    public void setAlarm_deal_usr(String alarm_deal_usr) {
        this.alarm_deal_usr = alarm_deal_usr;
    }

    public String getAlarm_deal_meas() {
        return alarm_deal_meas;
    }

    public void setAlarm_deal_meas(String alarm_deal_meas) {
        this.alarm_deal_meas = alarm_deal_meas;
    }

    public String getAlarm_deal_result() {
        return alarm_deal_result;
    }

    public void setAlarm_deal_result(String alarm_deal_result) {
        this.alarm_deal_result = alarm_deal_result;
    }

    public String getFeat_action() {
        return feat_action;
    }

    public void setFeat_action(String feat_action) {
        this.feat_action = feat_action;
    }

    public String getFeat_act_usr() {
        return feat_act_usr;
    }

    public void setFeat_act_usr(String feat_act_usr) {
        this.feat_act_usr = feat_act_usr;
    }

    public String getEvt_usr() {
        return evt_usr;
    }

    public void setEvt_usr(String evt_usr) {
        this.evt_usr = evt_usr;
    }

    public Timestamp getEvt_timestamp() {
        return evt_timestamp;
    }

    public void setEvt_timestamp(Timestamp evt_timestamp) {
        this.evt_timestamp = evt_timestamp;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Ret_tool_alarm that = (Ret_tool_alarm) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(unq_seq_id, that.unq_seq_id) &&
                Objects.equals(dept_id_fk, that.dept_id_fk) &&
                Objects.equals(line_id_fk, that.line_id_fk) &&
                Objects.equals(tool_status, that.tool_status) &&
                Objects.equals(alarm_mfmn, that.alarm_mfmn) &&
                Objects.equals(alarm_mfwk, that.alarm_mfwk) &&
                Objects.equals(time_period, that.time_period) &&
                Objects.equals(alarm_evt_typ, that.alarm_evt_typ) &&
                Objects.equals(alarm_lvl, that.alarm_lvl) &&
                Objects.equals(alarm_dsc, that.alarm_dsc) &&
                Objects.equals(alarm_note, that.alarm_note) &&
                Objects.equals(alarm_deal_usr, that.alarm_deal_usr) &&
                Objects.equals(alarm_deal_meas, that.alarm_deal_meas) &&
                Objects.equals(alarm_deal_result, that.alarm_deal_result) &&
                Objects.equals(feat_action, that.feat_action) &&
                Objects.equals(feat_act_usr, that.feat_act_usr) &&
                Objects.equals(evt_usr, that.evt_usr) &&
                Objects.equals(evt_timestamp, that.evt_timestamp);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, unq_seq_id, dept_id_fk, line_id_fk, tool_status, alarm_mfmn, alarm_mfwk, time_period, alarm_evt_typ, alarm_lvl, alarm_dsc, alarm_note, alarm_deal_usr, alarm_deal_meas, alarm_deal_result, feat_action, feat_act_usr, evt_usr, evt_timestamp);
    }
}